package com.cluster.gulimall.common.es;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


@Data
public class SkuEsModel {

    @ApiModelProperty(value = "skuId")
    private Long skuId;
    @ApiModelProperty(value = "spuId")
    private Long spuId;
    @ApiModelProperty(value = "产品简介")
    private String skuTitle;
    @ApiModelProperty(value = "产品价格")
    private BigDecimal skuPrice;
    @ApiModelProperty(value = "产品图片地址")
    private String skuImg;
    @ApiModelProperty(value = "销量")
    private Long saleCount;
    @ApiModelProperty(value = "是否有库存")
    private Boolean hasStock;
    @ApiModelProperty(value = "热度评分")
    private Long hotScore;
    @ApiModelProperty(value = "品牌编号")
    private Long brandId;
    @ApiModelProperty(value = "分类编号")
    private Long catalogId;
    @ApiModelProperty(value = "品牌名称")
    private String brandName;
    @ApiModelProperty(value = "品牌图片地址")
    private String brandImg;
    @ApiModelProperty(value = "分类名称")
    private String catalogName;
    @ApiModelProperty(value = "商品规格属性")
    private List<Attrs> attrs;

    @Data
    public static class Attrs {
        @ApiModelProperty(value = "attrId")
        private Long attrId;
        @ApiModelProperty(value = "商品规格名称")
        private String attrName;
        @ApiModelProperty(value = "商品规格内容")
        private String attrValue;

    }


}
